package com.albert.javabrains;

import java.util.Scanner;

public class Application {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		System.out.println("Enter a command : ");

		String text = input.nextLine();

		switch (text) {
		default:
			System.out.println("Command not recognized");
			break;
		case "start":
			System.out.println("Machine started");
			break;
		case "stop":
			System.out.println("Machine Stopped");
			break;
		}
		input.close();

	}

}
